<?php
$this->breadcrumbs = array(
	'材料列表' => array(
		'material/index'
	),
	$material->name => array(
		'material/view',
		'id' => $material->id
	),
	'型号列表',
);

$this->userActions = array(
	array(
		'label' => '新建型号',
		'url' => array(
			'create',
			'materialId' => $material->id,
		),
		'visible'=>Yii::app()->user->checkAccess('materialManage'),
		'iconClass'=>'icon-brick-add'
	),
	array(
		'label' => '管理 '.$material->name .' 型号',
		'url' => array(
			'admin',
			'materialId' => $material->id,
		),
		'visible'=>Yii::app()->user->checkAccess('materialManage'),
	),
);
?>

<h1>Material Models</h1>
<?php $this
	->widget('zii.widgets.CListView',
		array(
			'dataProvider' => $dataProvider,
			'itemView' => '_view',
		));
?>
